﻿@{ 
    var controller = ViewContext.RouteData.GetRequiredString("controller").ToLower();
    var action = ViewContext.RouteData.GetRequiredString("action").ToLower();
    <ul class="tab-nav">
        <li class="@if (controller == "home" && action == "index") { Write("current"); } ">
            @Html.ActionLink("Home", "Index", "Home")
        </li>
        <li class="@if (controller == "website") { Write("current"); } ">
            @Html.ActionLink("Website", "Index", "Website")
        </li>
        <li class="@if (controller == "user") { Write("current"); } ">
            @Html.ActionLink("User", "Index", "User")
        </li>
    </ul>
}
